package edu.kjxy.worker0312;

import java.util.Scanner;

public class worker09 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		StringBuilder binary = new StringBuilder();
		while(num > 0) {
			int bit = num % 2;
			binary.insert(0, bit);
			num /= 2;
		}
		System.out.println(binary.toString());
		in.close();
	}

}
